package me.tomato3017.plugins.epicmusic.thread;

import org.bukkit.entity.Player;
import org.getspout.spoutapi.SpoutManager;
import org.getspout.spoutapi.player.SpoutPlayer;

/**
 *
 * @author Anthony Kirksey <Anthony.Kirksey@gmail.com>
 */
public class StopMusicThread implements Runnable {
    private Player player;

    public StopMusicThread(Player player) {
        this.player = player;
    }

    public void run() {
        if(player != null){
            SpoutManager.getSoundManager().stopMusic((SpoutPlayer) player, false, 3000);
        }
    }
    
    
}
